package cn.jsj.finance.bank;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 查看某个律师的工资余额处理类
 * @author LI
 *
 */
 public class LookWageLeft extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
	 public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// 调试信息
		 cn.jsj.utils.SysLogger.PrintInfo("查看工资余额");

		 //获取参数
		 int lawyerAssId=Integer.parseInt(request.getParameter("lawyerAsName2").trim());

		 //调试信息
		 cn.jsj.utils.SysLogger.PrintInfo("律师助理ID--------->"+lawyerAssId);

		 //查看律师助理工资余额
		 cn.jsj.dao.TblWageManageDAO twmd=new cn.jsj.dao.TblWageManageDAO();
		 int wageLeft=twmd.getWageLeft(lawyerAssId);
		//输出流
		  java.io.PrintWriter out=response.getWriter();
		 out.println("{message:'"+wageLeft+"'}");
		 out.flush();
		 out.close();
	}
}